<template>
   <el-card>
      <!-- 课程管理 -->
      <bread-crumb slot="header">
        <template slot="title">课程管理</template>
      </bread-crumb>
      <div class="Contaner">
          <div class="QueryBtn">
            <el-select v-model="value" placeholder="请选择" style=" width: 170px;">
              <el-option
              style="height: 20px;"
                v-for="item in options"
                :key="item.value"
                :label="item.label"
                :value="item.value">
              </el-option>
            </el-select>
            <el-input v-model="input" placeholder="请输入内容" style="width: 210px;margin-left: 20px;"></el-input>
              <el-button style="margin-left: 20px; height: 25px; line-height: 3px;" type="primary">查询</el-button>
              <el-button @click="exportBouncedsss = true" style="margin-left: 20px; height: 25px; line-height: 3px;" type="text">高级搜索</el-button>
          </div>
        <el-tabs type="border-card">
          <el-tab-pane label="课程查询">
             <!-- <el-button @click="exportBounced = true" type="primary" style="margin-bottom: 16px; margin-top: 15px;">导出数据</el-button> -->
              <el-table :header-cell-style="{ background: '#eee', color: '#606266' }" data=""  max-height="450" style="width: 100%">
                <!-- <el-table-column label="教学点名称" width="340%">
                  <template slot-scope="{row}">
                    <el-button
                    @click="exportBouncedsssss = true"
                      type="text"
                      size="small">
                      {{row.InstitutionalType}}
                    </el-button>
                  </template>
                </el-table-column> -->
                <el-table-column prop="Principal" label="所属机构" width="210%"></el-table-column>
                <el-table-column prop="licence" label="教学点" width="210%"></el-table-column>
                <el-table-column prop="Institutional" label="课程名称" width="210%"></el-table-column>
                <el-table-column prop="licence" label="教材名称" width="150%"></el-table-column>
                <el-table-column prop="Principal" label="所属年级" width="150%"></el-table-column>
                <el-table-column prop="Principal" label="学科类别" width="150%"></el-table-column>
                <el-table-column prop="Principal" label="任课教师" width="150%"></el-table-column>
                <el-table-column prop="Principal" label="上课次数" width="150%"></el-table-column>
                <el-table-column prop="Principal" label="课时" width="150%"></el-table-column>
                <el-table-column prop="Principal" label="培训费用" width="150%"></el-table-column>
                <el-table-column prop="Principal" label="上课时间" width="150%"></el-table-column>
                <el-table-column prop="Principal" label="培训起止时间" width="150%"></el-table-column>
                <el-table-column prop="Principal" label="办件类型" width="150%"></el-table-column>
                <el-table-column prop="Principal" label="申报时间" width="150%"></el-table-column>
              </el-table>
              <!-- 分页 -->
                <el-row
                  type="flex"
                  align="middle"
                  justify="center"
                  style="margin-top: 20px"
                >
                  <el-col :span="5">
                    <el-pagination
                      background
                      layout="total, prev, pager, next, sizes"
                      :total="page.total"
                      :page-sizes="[7, 10, 20, 50, 100]"
                      :page-size="page.pageSize"
                      @current-change="changePage"
                      @size-change="handleSizeChange"
                      :current-page.sync="page.currentPage"
                    ></el-pagination>
                  </el-col>
                </el-row>
          </el-tab-pane>
          <el-tab-pane label="课程审批">
            <div class="Selectionsss">
              <div class="left_btn">
               <el-button plain>全部</el-button>
               <el-button plain>待审批</el-button>
               <el-button plain>已通过</el-button>
               <el-button plain>未通过</el-button>
              </div>
              <div class="right_shenhe" v-show="true">
                <el-button type="success">批量通过</el-button>
                <el-button type="danger">批量不通过</el-button>
              </div>
            </div>
              <el-table :header-cell-style="{ background: '#eee', color: '#606266' }" data=""  max-height="450" style="width: 100%"
              tooltip-effect="dark"
              @selection-change="handleSelectionChange"
              >
              <el-table-column type="selection" width="55"> </el-table-column>
                <el-table-column label="所属机构" width="170%">
                  <template slot-scope="{row}">
                    <el-button
                    @click="exportBouncedsssss = true"
                      type="text"
                      size="small">
                      {{row.Organizers}}
                    </el-button>
                  </template>
                </el-table-column>
                <el-table-column prop="Principal" label="教学点" width="190%"></el-table-column>
                <el-table-column prop="InstitutionalType" label="课程名称" width="170%"></el-table-column>
                <el-table-column prop="Institutional" label="教材名称" width="210%"></el-table-column>
                <el-table-column prop="licence" label="所属年级" width="150%"></el-table-column>
                <el-table-column prop="licence" label="学科类别" width="150%"></el-table-column>
                <el-table-column prop="licencessss" label="任课教师" width="170%"></el-table-column>
                <el-table-column prop="licencessss" label="上课次数" width="170%"></el-table-column>
                <el-table-column prop="licencessss" label="课时" width="170%"></el-table-column>
                <el-table-column prop="licencessss" label="培训费用" width="170%"></el-table-column>
                <el-table-column prop="licencessss" label="上课时间" width="170%"></el-table-column>
                <el-table-column prop="licencessss" label="培训起止时间" width="170%"></el-table-column>
                <el-table-column prop="licencessss" label="办件类型" width="170%"></el-table-column>
                <el-table-column prop="licencessss" label="当前节点" width="170%"></el-table-column>
                <el-table-column prop="licencessss" label="审批状态" width="170%"></el-table-column>
                <el-table-column prop="licencessss" label="申报时间" width="170%"></el-table-column>
              </el-table>
              <!-- 分页 -->
                <el-row
                  type="flex"
                  align="middle"
                  justify="center"
                  style="margin-top: 20px"
                >
                  <el-col :span="5">
                    <el-pagination
                      background
                      layout="total, prev, pager, next, sizes"
                      :total="page.total"
                      :page-sizes="[7, 10, 20, 50, 100]"
                      :page-size="page.pageSize"
                      @current-change="changePage"
                      @size-change="handleSizeChange"
                      :current-page.sync="page.currentPage"
                    ></el-pagination>
                  </el-col>
                </el-row>
          </el-tab-pane>
        </el-tabs>
      </div>
      <!-- 导出弹框
      <el-dialog title="导出数据" width="500px" :visible.sync="exportBounced">
        <div class="ExportBtn">
          <el-button type="primary">导出当前页</el-button>
          <el-button style="margin-left: 60px" type="primary"
            >导出全部数据（搜索后）</el-button
          >
        </div>
      </el-dialog> -->
      <!-- 高级搜索 -->
      <el-dialog title="高级搜索" width="700px" :visible.sync="exportBouncedsss">
        <div class="Top_seach">
          <p>学科/年级筛选</p>
          <div class="category">
            <div>学科类别（多选）：</div>
            <div style="margin-left: 10px;" class="checkboxs">
              <el-checkbox v-model="checked">语文</el-checkbox>
              <el-checkbox v-model="checked">数学</el-checkbox>
              <el-checkbox v-model="checked">英语</el-checkbox>
              <el-checkbox v-model="checked">科学</el-checkbox>
              <el-checkbox v-model="checked">技术</el-checkbox>
              <el-checkbox v-model="checked">历史与社会</el-checkbox>
              <el-checkbox v-model="checked">物理</el-checkbox>
              <el-checkbox v-model="checked">化学</el-checkbox>
              <el-checkbox v-model="checked">生物</el-checkbox>
              <el-checkbox v-model="checked">地理</el-checkbox>
              <el-checkbox v-model="checked">政治</el-checkbox>
              <el-checkbox v-model="checked">历史</el-checkbox>
              <el-checkbox v-model="checked">其他</el-checkbox>
            </div>
          </div>
          <div class="category">
            <div>所属年级（多选）：</div>
            <div style="margin-left: 10px;" class="checkboxs">
              <el-checkbox v-model="checked">一年级</el-checkbox>
              <el-checkbox v-model="checked">二年级</el-checkbox>
              <el-checkbox v-model="checked">三年级</el-checkbox>
              <el-checkbox v-model="checked">四年级</el-checkbox>
              <el-checkbox v-model="checked">五年级</el-checkbox>
              <el-checkbox v-model="checked">六年级</el-checkbox>
              <el-checkbox v-model="checked">初一</el-checkbox>
              <el-checkbox v-model="checked">初二</el-checkbox>
              <el-checkbox v-model="checked">初三</el-checkbox>
              <el-checkbox v-model="checked">高一</el-checkbox>
              <el-checkbox v-model="checked">高二</el-checkbox>
              <el-checkbox v-model="checked">高三</el-checkbox>
            </div>
          </div>
          <p>时间筛选</p>
          <div class="blocksss">
            <span class="demonstration">培训起止时间：</span>
            <el-date-picker
              v-model="value1"
              type="daterange"
              range-separator="至"
              end-placeholder="结束日期"
              start-placeholder="开始日期">
            </el-date-picker>
            <div style="padding-left: 27px; margin-top: 20px;">
              <span class="demonstration">申报时间：</span>
            <el-date-picker
              v-model="value1"
              type="daterange"
              range-separator="至"
              end-placeholder="结束日期"
              start-placeholder="开始日期">
            </el-date-picker>
            </div>
          </div>
          <p>组合搜索</p>
          <div class="tabelskc"><div class="left_name">课程名称：</div><div class="shuru"><el-input /></div></div>
          <div class="tabelskc"><div class="left_name">任课教师：</div><div class="shuru"><el-input /></div></div>
          <div class="tabelskc"><div class="left_name">上课次数：</div><div class="shuru"><el-input /></div></div>
          <div class="tabelskc"><div class="left_name">总课时数：</div><div class="shuru"><el-input /></div></div>
          <div class="tabelskc"><div class="left_name">拟招生人数：</div><div class="shuru"><el-input /></div></div>
          <div class="tabelskc"><div class="left_name">教材及使用情况说明：</div><div class="shuru"><el-input /></div></div>
          <div class="tabelskc"><div class="left_name">办件类型：</div><div class="shuru">
              <el-select v-model="value" placeholder="请选择" style="width: 100%;">
                <el-option
                  v-for="item in optionsskc"
                  :key="item.value"
                  :label="item.label"
                  :value="item.value">
                </el-option>
              </el-select>
            </div></div>
        </div>
        <span slot="footer" class="dialog-footer">
          <el-button @click="exportBouncedsss = false">取 消</el-button>
          <el-button type="primary" @click="exportBouncedsss = false">确 定</el-button>
        </span>
      </el-dialog>
      <!-- 详细信息 -->
      <el-dialog title="详细信息" width="600px" :visible.sync="exportBouncedsssss">
        <div class="big_Info"><div>教学点名称：</div><div style="margin-left: 2px;">光明村教学点</div></div>
        <div class="big_Info"><div>教学点联系电话：</div><div style="margin-left: 2px;">1765352199</div></div>
        <div class="big_Info"><div>教学点地址：</div><div style="margin-left: 2px;">光明村文化学院</div></div>
        <div class="big_Info"><div>教学点经纬度信息：</div><div style="margin-left: 2px;">暂无</div></div>
      </el-dialog>
   </el-card>
</template>

<script>
export default {
  data () {
    return {
      exportBouncedsssss: false,
      exportBounced: false,
      exportBouncedsss: false,
      optionsskc: [{
        value: '选项1',
        label: '全部办件'
      }, {
        value: '选项2',
        label: '新增办件'
      }, {
        value: '选项3',
        label: '注销办件'
      }],
      options: [{
        value: '选项1',
        label: '姓名'
      }, {
        value: '选项2',
        label: '身份证号码'
      }, {
        value: '选项3',
        label: '教师资格证号'
      }, {
        value: '选项4',
        label: '所属机构'
      }],
      value: '',
      value1: '',
      page: {
        // 分页数据
        total: 1, // 总条数
        currentPage: 1, // 默认的页码 是第一个页  决定了当前页码是第几页
        pageSize: 9 // page-size的默认值是10条
      },
      tableData: [
        {
          licence: '光明顶',
          Institutional: '王小虎', // 1
          InstitutionalType: '上海市普陀区',
          Organizers: '厉害陈', // 4
          Principal: '150', // 5
          licencessss: '通过' // 5
        },
        {
          licence: '光明顶',
          Licenceissued: '2016-05-02',
          Institutional: '王小虎',
          InstitutionalType: '上海市普陀区',
          Organizers: '厉害陈',
          Principal: '150',
          licencessss: '通过' // 5
        }
      ]
    }
  },
  methods: {
    // 当选择项发生变化时会触发该事件
    handleSelectionChange (val) {
      console.log('我选择了')
      console.log(val)
      this.multipleSelection = val
    }
  }
}
</script>

<style lang="less" scopde>
  .Selectionsss {
    padding-top: 10px;
    padding-bottom: 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    .left_btn {

      .el-button+.el-button {
        margin-left: 0;
    }
      }
  }
  .big_Info {
    display: flex;
    padding: 0 24px 16px;
    color: rgba(0,0,0,.85);
  }
.Top_seach {
  .tabelskc {
    display: flex;
      margin-bottom: 24px;
    .shuru {
      width: 100%;
    }
    .left_name {
      width: 180px;
      height: 32px;
      text-align: right;
      line-height: 32px;
    }
  }
      .blocksss {
      padding: 0 0 0 75px;
      margin-bottom: 24px;
    }
  .category {
    padding: 0 0 0 20px;
    display: flex;
    align-items: center;
    margin-bottom: 24px;
    .checkboxs {
      width: 500px;
      display: flex;
      flex-wrap: wrap;
      .el-checkbox {
        margin-right: 15px;
      }
    }
  }
  p {
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 20px;
    color: #000000;
  }
}
  .ExportBtn {
    width: 80%;
    margin: 0px 40px 0px;
    padding-bottom: 40px;
  }
  .el-card__body {
    padding: 0 !important;

      .el-dialog {
    margin-bottom: 0 !important;
  }

  .el-dialog__body {
    padding: 30px 20px 0;
    border-top: 1px solid #e4e4e4;
  }
  }
  .Contaner {
    position: relative;
  }
  .QueryBtn {
    display: flex;
    align-items: center;
    width: 550px;
    height: 40px;
    position: absolute;
    top: 0;
    right: 30px;
    z-index: 1;
    .el-input__suffix {
      line-height: 50px;
    }
    input {
      height: 30px;
    }
  }
</style>
